import App from './App'
import Vue from 'vue'
import VHtmlPlugin from '@megalo/vhtml-plugin'
import Vuex from 'vuex'
import {
  request
} from './utils/index.js'
Vue.use(VHtmlPlugin)
Vue.use(Vuex)

// Ajax请求
Vue.prototype.$http = request;
const store = require('./store').default
Vue.prototype.$store = store
const app = new Vue(App)
app.$mount()

export default {
  config: {
    // pages 的首个页面会被编译成首页
    pages: [
      'pages/Home/Home', //主页
      'pages/My/My', //个人页
      'pages/Sort/Sort', //分类
      'pages/Login/Login', //登陆
      'pages/Player/Player', //视频播放页面
      'pages/VIP/VIP', //开通会员
      'pages/VideoList/VideoList', //视频列表
      'pages/Collect/Collect', //收藏电影
      'pages/Poster/Poster', //生成海报
      'pages/Seen/Seen', //浏览记录
      'pages/Order/Order', //订单记录
      'pages/AD/AD', //广告
      'pages/Buy/Buy', //电影购买页
      'pages/BuyList/BuyList', //购买的电影记录
      'pages/Share/Share', //购买的电影记录
    ],
    tabBar: {
      color: '#333',
      selectedColor: '#007d37',
      "custom": false,
      list: [{
          pagePath: "pages/Home/Home",
          text: "باشبەت",
          iconPath: "native/tabbar/home.png",
          selectedIconPath: "native/tabbar/home_full.png"
        },
        {
          pagePath: "pages/My/My",
          text: "مېنىڭ",
          iconPath: "native/tabbar/me.png",
          selectedIconPath: "native/tabbar/me_full.png"
        },
        {
          pagePath: "pages/Sort/Sort",
          text: "تۈرلەر",
          iconPath: "native/tabbar/sort.png",
          selectedIconPath: "native/tabbar/sort_full.png"
        }
      ],
    },
    window: {
      // "navigationBarBackgroundColor": "#39b54a",
      "navigationStyle": "custom",
      "navigationBarTextStyle": "white"
    },
    /*  "plugins": {
       "poster": {
         "version": "1.2.2",
         "provider": "wxbf07f0f22c6c200d"
       }
     }, */
    // "poster": "plugin://poster/poster"
    "usingComponents": {
      "i-toast": "./native/plugins/toast/index",
      "i-spin": "./native/plugins/spin/index",
      "i-icon": "./native/plugins/icon/index",
      "painter": "./native/plugins/painter/painter"
    }
  }
}